import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const ccb: AppRouteModule = {
  path: '/ccb',
  name: 'Ccb',
  component: LAYOUT,
  redirect: '/ccb/domainList',
  meta: {
    orderNo: 30,
    icon: 'ion:layers-outline',
    title: t('routes.document.ccb.ccbIndex'),
  },

  children: [
    {
      path: 'domainList',
      name: 'DomainList',
      component: () => import('/@/views/ccb/domainList.vue'),
      meta: {
        title: t('routes.document.ccb.ccbList'),
        ignoreKeepAlive: false,
      },
    },
    {
      path: 'editDomain',
      name: 'DomainEdit',
      component: () => import('/@/views/ccb/editDomain.vue'),
      meta: {
        title: t('routes.document.ccb.domainEdit'),
        ignoreKeepAlive: true,
        hideMenu: true,
      },
    },
  ],
};

export default ccb;
